package com.cmc.cloud.cmclink.doc.convert;

import com.cmc.cloud.cmclink.doc.entity.SpecialCargoRejectReasonDO;
import com.cmc.cloud.cmclink.doc.vo.special.rejectreasonvo.SpecialCargoRejectReasonCreateReqVO;
import com.cmc.cloud.cmclink.doc.vo.special.rejectreasonvo.SpecialCargoRejectReasonRespVO;
import com.cmc.cloud.cmclink.doc.vo.special.rejectreasonvo.SpecialCargoRejectReasonUpdateReqVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 特种货审批长常用拒绝理由 Convert
 *
 * @author 集运管理员
 */
@Mapper
public interface SpecialCargoRejectReasonConvert {

    SpecialCargoRejectReasonConvert INSTANCE = Mappers.getMapper(SpecialCargoRejectReasonConvert.class);

    /**
     * 属性转换 convert
     *
     * @param bean
     * @return
     */
    SpecialCargoRejectReasonDO convert(SpecialCargoRejectReasonCreateReqVO bean);

    /**
     * 属性转换 convert
     *
     * @param bean
     * @return
     */
    SpecialCargoRejectReasonDO convert(SpecialCargoRejectReasonUpdateReqVO bean);

    /**
     * 属性转换 convert
     *
     * @param bean
     * @return
     */
    SpecialCargoRejectReasonRespVO convert(SpecialCargoRejectReasonDO bean);

    /**
     * 属性转换 convert
     *
     * @param list
     * @return
     */
    List<SpecialCargoRejectReasonRespVO> convertList(List<SpecialCargoRejectReasonDO> list);

}
